package com.cmc.cloud.cmclink.doc.api.document.req.so;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.math.BigDecimal;

/**
 * 特种货申请dg下cas信息 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 *
 * @author codegen
 */
@Data
public class CasCreateOrUpdateVO {
    @Schema(description = "cas更新需要传")
    private Long id;

    @Schema(description = "DG信息ID")
    private Long specialCargoDgId;

    @Schema(description = "CAS组号", requiredMode = Schema.RequiredMode.REQUIRED)
    @Length(max = 30, message = "CAS组号支持最大长度{max}")
    private String casNoGroup;

    @Schema(description = "化学品唯一编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @Length(max = 30, message = "化学品唯一编号支持最大长度{max}")
    private String casNo;

    @Schema(description = "最小含量%", requiredMode = Schema.RequiredMode.REQUIRED)
    private BigDecimal minPercent;

    @Schema(description = "最大含量%", requiredMode = Schema.RequiredMode.REQUIRED)
    private BigDecimal maxPercent;

}
